package com.study.designPattern.create.prototype;

/**
 * @author ysy
 * @version 1.0
 * @Title: PrototypePatternTest
 * @Note <b>ProjectName:</b> Pre-research
 * <br><b>PackageName:</b> com.study.designPattern.create.prototype
 * <br><b>ClassName:</b>
 * <br><b>Date:</b>

 */
public class PrototypePatternTest {
    public static void main(String[] args) throws CloneNotSupportedException {
        CarCache.loadCache();
        CloneableCar car1 = CarCache.getCar("1");
        car1.run();

        CloneableCar car2 = CarCache.getCar("2");
        car2.run();
    }
}
